Skip to content

Feat: Add unified web search and fetch tool - #343

Open
devcool20 wants to merge 1 commit into
exa-labs:mainfrom
devcool20:feat/web-search-fetch-exa
Open

Feat: Add unified web search and fetch tool#343
devcool20 wants to merge 1 commit into
exa-labs:mainfrom
devcool20:feat/web-search-fetch-exa

Conversation

@devcool20

Copy link
Copy Markdown

Summary

Adds web_search_fetch_exa, a unified MCP tool that searches Exa and fetches full content for the top results in one call.

Why

Agents currently need to call web_search_exa, parse URLs, then call web_fetch_exa. This adds latency and token overhead. The new tool performs both phases server-side and returns one structured markdown response.

Changes

  • Added web_search_fetch_exa
  • Registered it as a default tool
  • Added search + batch /contents orchestration
  • Added fetchNumResults clamping and search-only mode
  • Added partial crawl error reporting
  • Updated docs and discovery surfaces
  • Added focused unit tests

Testing

  • npm run typecheck
  • npm run test
  • Manual MCP Inspector validation:
    • happy path with numResults: 5, fetchNumResults: 3
    • clamp behavior with fetchNumResults: 99
    • search-only mode with fetchNumResults: 0
    • no-results branch

@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

@devcool20 is attempting to deploy a commit to the Exa Team on Vercel.

A member of the Team first needs to authorize it.

@devcool20
devcool20 force-pushed the feat/web-search-fetch-exa branch from 6fe9901 to 08a2aff Compare May 21, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant